//
//  LayoutItem.h
//  Menu
//
//  Created by trimad on 11-11-11.
//  Copyright 2011 Trimad Group. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "OrderManager.h"

@class Item;
@class OrderItem;

@interface LayoutItemView: UIView<OrderManagerDelegate> {
	UILabel *codeLabel;
	UILabel *nameLabel;
	UILabel *priceLabel;
	UILabel *quantityLabel;
	UILabel *unitLabel;
	UILabel *descriptionLabel;
	UIButton *addOneButton;
	UIButton *removeOneButton;
	UIImageView *imageView;
	OrderItem *orderItem;
}

@property (nonatomic, retain) IBOutlet UILabel *codeLabel;
@property (nonatomic, retain) IBOutlet UILabel *nameLabel;
@property (nonatomic, retain) IBOutlet UILabel *priceLabel;
@property (nonatomic, retain) IBOutlet UILabel *quantityLabel;
@property (nonatomic, retain) IBOutlet UILabel *unitLabel;
@property (nonatomic, retain) IBOutlet UILabel *descriptionLabel;
@property (nonatomic, retain) IBOutlet UIImageView *imageView;
@property (nonatomic, retain) IBOutlet UIButton *addOneButton;
@property (nonatomic, retain) IBOutlet UIButton *removeOneButton;
@property (nonatomic, retain) OrderItem *orderItem;

- (void)activate: (Item *) item;

- (void)addOneClicked:(id)sender;
- (void)removeOneClicked:(id)sender;
- (void)handleTapGestures:(UIGestureRecognizer *) sender;
@end
